package com.zsj.qzt_punch.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.springframework.lang.Nullable;

@Data
public class Result {

    private int code;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Nullable
    private String data;
    private String msg;

    public void setCode(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getData() {
        return data;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    public String toString() {
        return "返回信息{" +
                "状态码=" + code +
                ", 数据='" + data + '\'' +
                ", 消息='" + msg + '\'' +
                '}';
    }
}
